package com.dbsop.domain;

import com.dbsop.domain.transport.EsTransportCondition;

import java.util.HashMap;
import java.util.Map;

public class EsUpdateCondition {

    private EsCondition esCondition = EsCondition.getEsCondition();

    private Map<String,Object> fieldValue = new HashMap<String, Object>();

    public Map<String, Object> getFieldValue() {
        return fieldValue;
    }

    private EsUpdateCondition() {
    }

    public void setEsCondition(EsCondition esCondition) {
        this.esCondition = esCondition;
    }

    public EsCondition getEsCondition() {
        return esCondition;
    }

    public EsUpdateCondition add(String key, Object value){
        fieldValue.put(key,value);
        return this;
    }
}
